package org.cytoscape.myapp.cytoscape_app_v1.internal.tasks;

import java.util.Set;

import org.cytoscape.app.swing.CySwingAppAdapter;
import org.cytoscape.application.CyApplicationConfiguration;
import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.model.CyNode;
import org.cytoscape.view.layout.CyLayoutAlgorithm;
import org.cytoscape.view.layout.CyLayoutAlgorithmManager;
import org.cytoscape.view.model.CyNetworkView;
import org.cytoscape.view.model.View;
import org.cytoscape.work.Task;
import org.cytoscape.work.TaskIterator;
import org.cytoscape.work.TaskManager;
import org.cytoscape.work.TaskMonitor;

public class LayoutDefault{
	
	private TaskIterator iterator;
	
	
	public LayoutDefault(CyNetworkView view, CyLayoutAlgorithmManager layoutAlgorithmManager){

		
		CyLayoutAlgorithm layout = layoutAlgorithmManager.getLayout("jgraph-radial-tree"); 
		Object context = layout.createLayoutContext();
		this.iterator = layout.createTaskIterator(view, context, CyLayoutAlgorithm.ALL_NODE_VIEWS, null);
				
	} 
	public TaskIterator getLayoutIterator(){
		return this.iterator;
	}


}
